package com.avecsys.quotemanager.pojos;

import java.util.HashSet;
import java.util.Set;

/**
 * 
 * @author Sam Sundar
 * 
 */
public class UserMasterPojo extends BasePojo implements java.io.Serializable {

	private Long userId;
	private String userName;

	private String email;

	private String password;

	private String emailVerfied;

	private String userType;

	private Set<SupplierUsersPojo> supplierUsersPojo = new HashSet<SupplierUsersPojo>(
			0);

	private Set<BuyerUsersPojo> buyerUsersPojo = new HashSet<BuyerUsersPojo>(0);

	public UserMasterPojo() {
	}

	public Set<BuyerUsersPojo> getBuyerUsersPojo() {
		return buyerUsersPojo;
	}

	public String getEmail() {
		return email;
	}

	public String getEmailVerfied() {
		return emailVerfied;
	}

	public String getPassword() {
		return password;
	}

	@Override
	public String getPkColumnName() {
		return "userId";
	}

	public Set<SupplierUsersPojo> getSupplierUsersPojo() {
		return supplierUsersPojo;
	}

	public Long getUserId() {
		return userId;
	}

	public String getUserName() {
		return userName;
	}

	public String getUserType() {
		return userType;
	}

	@Override
	public boolean isPersisted() {
		if (userId == null || userId.intValue() == 0) {
			return false;
		} else {
			return true;
		}

	}

	public void setBuyerUsersPojo(Set<BuyerUsersPojo> buyerUsersPojo) {
		this.buyerUsersPojo = buyerUsersPojo;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public void setEmailVerfied(String emailVerfied) {
		this.emailVerfied = emailVerfied;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setSupplierUsersPojo(Set<SupplierUsersPojo> supplierUsersPojo) {
		this.supplierUsersPojo = supplierUsersPojo;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

}
